package edu.sctu.lab03;

import javax.servlet.*;
import java.io.IOException;

/**
 * Created by Administrator on 2018-6-5.
 */
public class DemoTwoFilter implements Filter {


    @Override
    public void init(FilterConfig filterConfig) throws ServletException {

    }

    @Override
    public void doFilter(ServletRequest request,
                         ServletResponse response,
                         FilterChain chain)
            throws IOException, ServletException {


        System.out.println("这是第二个过滤器。");

        chain.doFilter(request, response);
    }

    @Override
    public void destroy() {

    }
}
